module SetDummy
	def create_set(name)
		@task_array = Array.new

    	@set_param = { 
      	:name => name,
      	:uid => 8,
      	:stage => 0,
			:tasks => ""
    	}   
    	@taskset = Taskset.new(@set_param)
    	@taskset.save

    	@task_param = { 
      	:name=> "test task",
      	:rid=> 0,
      	:capabilities=> "svn:1,make:1",
      	:stage=> 0,
      	:specified=> 0,
      	:command=> "dummy;A,B,C",
      	:pid=> 0,
      	:interrupt=> 0,
      	:logfile=> "log.txt",
      	:sid => @taskset.id
   	}   
   
   	for i in 0..1
      	@task = Task.new(@task_param);
      	@task.save
      	@task_array << @task.id.to_s
   	end 
		
      @taskset.update_attribute("tasks", @task_array.join(":"));

	 	return @taskset
	end

	def test
	end
end

